<script language="javascript">
{literal}
jQuery(document).ready(function() {
	jQuery("#created_time_from").datepicker();
	jQuery("#created_time_to").datepicker();
  });
</script>
{/literal}
<table width="100%" cellpadding="10" border="0">	
	<tr><td colspan="9"><div class="product-list-paging" style="margin: 0px; padding: 0px;">{$paging}</div></td></tr>
	<tr>
		<td colspan="9" bgcolor="#f0f0f0">
			<table cellpadding="5" border="0" width="100%">
				<tr>
					<td><font style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#0000CC; font-size:14px"><strong><a href="manage_bad_content.html">Quản lý thông báo nội dung xấu</a></strong></font></td>
					<td width="40%" align="right">
					<strong>Thời gian (dd-mm-yyyy)</strong> từ ngày:
					<input type="text" name="created_time_from" id="created_time_from" value="{$created_time_from}" /> 
						tới 
					<input type="text" name="created_time_to" id="created_time_to" value="{$created_time_to}" />
					<div style="padding:5px; margin-left:117px" align="left">
					<b>Chưa giải quyết: </b><input type="checkbox" name="processed" id="processed" value="1" {if $processed==1} checked="checked"{/if}/>
					</div>
					</td>
					<td align="right" width="22%"><strong>Người gửi:</strong> <input type="text" name="sender_user_name" value="{$sender_user_name}"/></td>
					<td width="10%"><input type="submit" name="search" value="Tìm kiếm" /></td>
				</tr>
			</table>			
		</td>
	</tr>	
	<tr>
		<td width="3%" align="center"><input onClick="selecte_all_checkbox('ManageBadContentForm');" name="chk_ids" type="checkbox" id="list_item_0" value="1" title="Chọn tất cả"></td>
		<td width="5%" align="center">
			<span>
				<input onclick="if(!confirm('Bạn có chắc muốn xóa không?'))return false;" type="submit" name="del_all" id="del_all" value="Xóa thông báo" title="Xóa tất cả"/>
			</span>			
		</td>
		<td align="center"><strong>Lý do</strong></td>
		<td width="10%" align="center"><strong>Ngày gửi</strong></td>
		<td width="10%" align="center"><strong>Người gửi</strong></td>				
		<td width="10%" align="center"><strong>Admin</strong></td>
		<td width="22%" align="center"><strong>Nội dung giải quyết</strong></td>
		<td width="5%" align="center"><strong>Xử lý</strong></td>
		<td width="5%" align="center"><strong>Xóa</strong></td>
	</tr>
	{if $items}
	{foreach from=$items item=items}
	<tr bgcolor="{cycle values='#f0f0f0,#ffffff'}" id="{$items.id}">
		<td align="center"><input name="chk_id[]" type="checkbox" id="list_item_{$items.id}" value="{$items.id}"></td>
		<td colspan="2" align="left"><a onMouseOut="hidetip();" onMouseOver = "showtip('{$items.reason_tooltip}');" target="_blank" href="{$items.href}">{$items.reason}</a></td>		
		<td align="center">{$items.time_post}</td>
		<td align="left"><a href="{$items.user_name}">{$items.user_name}</a></td>
		<td>
			{if $items.admin_name}
				<a target="_blank" href="{$items.admin_name}">{$items.admin_name}</a>
			{/if}
		</td>
		<td align="left"><a onMouseOut="hidetip();" onMouseOver = "showtip('{$items.note_tooltip}');" href="javascript:void(0)">{$items.note}</a></td>				
		<td align="center">
			{if $items.status==0}
				<a href="javascript:void(0)" onclick="set_check_proces_bad_content({$items.id},{$items.status},'{$items.note}')">
				<img src="style/images/admin/delete1.gif" title="Chưa xử lý" />
				</a>
			{else}
				<a href="javascript:void(0)" onclick="set_check_proces_bad_content({$items.id},{$items.status},'{$items.note}')">
				<img src="style/images/admin/check.gif" title="Đã xử lý" />
				</a>
			{/if}
		</td>
		<td align="center">
		  <a onclick="if(!confirm('Bạn có chắc muốn xóa không?'))return false;" href="{$items.del_link}">
			<img src="style/images/admin/delete_button.gif" title="Xóa" />
		  </a>
		</td>			
	</tr>	
	{/foreach}	
	<tr><td colspan="9"><div class="product-list-paging" style="margin: 0px; padding: 0px;">{$paging}</div></td></tr>
	{else}
	<tr><td align="center" height="50" colspan="9" bgcolor="{cycle values='#f0f0f0,#ffffff'}"><strong>Chưa có thông tin nào cả</strong></td></tr>
	{/if}
</table>